package com.joysuch.wwyt.bp.bean.tagert;

import cn.zlg.common.springmvc.validate.constraints.NotNull;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.persistence.Id;
import javax.validation.Valid;
import java.time.LocalDate;
import java.util.List;

/**
 * @Author ZhangDong
 * @Date 2020/8/6 15:37
 */
@Data
public class BpTargetExamineBean {

    @Id
    @NotNull(message = "recordId cannot be null")
    private Long recordId;
    @ApiModelProperty("考核日期")
    @NotNull(message = "考核日期不能为空")
    private LocalDate examineDate;
    @ApiModelProperty("考核人员")
    @NotNull(message = "考核人员不能为空")
    private Long examineUserId;
    @ApiModelProperty("考核结果")
    @NotNull(message = "考核结果不能为空")
    private String examineResult;
    @ApiModelProperty("最终得分")
    private String totalScores;
    @ApiModelProperty("目标指标完成情况集合")
    @Valid
    private List<BpTargetNormResultBean> resultBeanList;
}
